<?php

declare(strict_types=1);

use Yansongda\Pay\Pay;

return [
    'alipay' => [
        'default' => [
            // 必填-支付宝分配的 app_id
            'app_id' => '2021004123615259',
            // 必填-应用私钥 字符串或路径
            'app_secret_cert' => 'MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCZlSCQEXrIO2pzVfrywblUIL2HDBXOpkpK5WNTbzeUrI9QUS1GrLkEHxMTwE5AjQ3DW9aaNw5mqik+fpqmfHSD8cEmG2wrBagT1nDrmKskgbGwLjF9o1h6O3LgciAZWxM7w7YiA1G8VeLTcBztivzoz6rCgRSKPLQj1nAZAXT4LbUmhnuR22tJW9geFEV1rWcJs+QSYxxGtQSmatOFDxjaQyJ31EZhaWUsmPYi24bYAuJSpduW8ADdTBvAbnnB18T33JTty6q3fpBAyYwfvvv/i5M97T/92nDDDz7rz5VDWaHGIp2ZpOii/vUQVaSbL8Z72AO5sEAEifJ1NoecwOEvAgMBAAECggEAOlqsLbFGiq/wqXQAzp4G0c1C1f4khwkt7zkrPTdj0eyi42yEnHbiMYuxDu8hjGtL0G+joaLLqPx8gU9PaXSePMftkJIYzlvu2eK/svSmCk/w+LUEfu1Cn+bYpikWwyuUqj+Zg2DpfHrRnW7avvLxV3AYPKEY8dFQzNEcdJPWIrl7MewQ1GWg8Av8qJVMu4621L9BoEUHgvP4kfACDxEfsoJgfovQBNjhkFp3F0LI73BPna1+FmICZjtKe0bSOR7TvGm1axAVkD8UdStB1TQR6+sPn6kc5idrDKwYLncq4I+eH4kzr0WdCXEPNdv+ixU96WieqkletslgBD+JASO+WQKBgQDiwg/PpEhh1oigZM1EQDHOISPWekgfWX8dhPq66x1WX63GLVrhVxVUGKUpKhMyk40d1GDciEvRmVkgEIL0lIg9QCPpv3O0aafiIujUkVgNWbq6vrzFzXdB9UvwqR9GJmRPM/WxDeYu0fDufRKK1JgpM84e5chq77bH/R8JX+YszQKBgQCtY1R7AfTQNXh2a4ETxF6sdSaJz4MADVfVh+49j0qrcYvCH0WAi3SEyPGoYBL5s8wvyGmzbFv8RUdO+cYFddcvhFgVR8M8IzVJSozonG+uCJfSw1fI9QNYDI5XSp8wKSLG3WVnaoPDRjka/lqrk3VMI6uZMYq9kVgLzj0Lw+zF6wKBgQDC9s/ZXArP9EDshz7l27v22w+RLPot2iktHFTnuZcz2Hf02LI25UT1VWtMBV0UM0E10JCnjJiD0jGLHCc8Wyj4YNl/9JhrGhy6lgFSItVuRSQDxFNSTuKm110/wmmdSw0b/DTW0niC8QcSRn9W1ostgdlLP44eQ5UIRl4VFVs2UQKBgQCelTv+aZKlIFK2VKsxDijdKST/ZJlXYdzVA0dmbHmKBwchnIJwCJygmj1Ul9KjKcx2Y6IxpckYGbEXzaFM+zO+VRhPFly90yH4j8QDOJl4nolmDp5qwZW2YX2K30hrvyP8qSAHD0fGQaMXSk5ZoTvmULWxHrvbmGTkH1R8P01+0wKBgBPeugLsV+YejQIjL8tgBhKaOmsplucd19fJFesrqM2m6mpxjPbFzPWuvISNmny4xGcAmzMoOqy+7L/bYE22J2t5H3RtqulgiKGs0YG2p7u7iQLeY/ic/z9zDBlcC9zHKBBydVC3H2TkE8rXmvM56NgK7ScO9X/dojrJq29ADQpm',
            // 必填-应用公钥证书 路径
            'app_public_cert_path' => '/www/wwwroot/hyperf_contract/storage/alipay/appCertPublicKey_2021004123615259.crt',
            // 必填-支付宝公钥证书 路径
            'alipay_public_cert_path' => '/www/wwwroot/hyperf_contract/storage/alipay/alipayCertPublicKey_RSA2.crt',
            // 必填-支付宝根证书 路径
            'alipay_root_cert_path' => '/www/wwwroot/hyperf_contract/storage/alipay/alipayRootCert.crt',
            'return_url' => 'https://'.\Util\Common::MAIN_HOST,
            'notify_url' => 'https://'.\Util\Common::MAIN_HOST . '/api/order/ali_notify',
            // 选填-服务商模式下的服务商 id，当 mode 为 Pay::MODE_SERVICE 时使用该参数
            'service_provider_id' => '',
            // 选填-默认为正常模式。可选为： MODE_NORMAL, MODE_SANDBOX, MODE_SERVICE
            'mode' => Pay::MODE_NORMAL,
        ],
    ],
    'wechat' => [
        'default' => [
            // 必填-商户号
            'mch_id' => '1656323028',
            // 必填-商户秘钥
            'mch_secret_key' => '98uu8ru8w0d9kc82ijr8uu8djek9id92',
            // 必填-商户私钥 字符串或路径
            'mch_secret_cert' => '/www/wwwroot/hyperf_contract/storage/cert/apiclient_key.pem',
            // 必填-商户公钥证书路径
            'mch_public_cert_path' => '/www/wwwroot/hyperf_contract/storage/cert/apiclient_cert.pem',
            // 必填
            'notify_url' => 'https://'.\Util\Common::MAIN_HOST.'/api/order/wx_notify',
            // 选填-公众号 的 app_id
            'mp_app_id' => 'wxc94cc2db87424c97',
            // 选填-小程序 的 app_id
            'mini_app_id' => '',
            // 选填-app 的 app_id
            'app_id' => '',
            // 选填-合单 app_id
            'combine_app_id' => '',
            // 选填-合单商户号
            'combine_mch_id' => '',
            // 选填-服务商模式下，子公众号 的 app_id
            'sub_mp_app_id' => '',
            // 选填-服务商模式下，子 app 的 app_id
            'sub_app_id' => '',
            // 选填-服务商模式下，子小程序 的 app_id
            'sub_mini_app_id' => '',
            // 选填-服务商模式下，子商户id
            'sub_mch_id' => '',
            // 选填-微信平台公钥证书路径, optional，强烈建议 php-fpm 模式下配置此参数
//                'wechat_public_cert_path' => [
//                    '45F59D4DABF31918AFCEC556D5D2C6E376675D57' => __DIR__.'/Cert/wechatpay_45F***D57.pem',
//                ],
            // 选填-默认为正常模式。可选为： MODE_NORMAL, MODE_SERVICE
            'mode' => Pay::MODE_NORMAL,
        ]
    ],
    'http' => [ // optional
        'timeout' => 5.0,
        'connect_timeout' => 5.0,
        // 更多配置项请参考 [Guzzle](https://guzzle-cn.readthedocs.io/zh_CN/latest/request-options.html)
    ],
    // optional，默认 warning；日志路径为：sys_get_temp_dir().'/logs/yansongda.pay.log'
    'logger' => [
        'enable' => false,
        'file' => null,
        'level' => 'debug',
        'type' => 'single', // optional, 可选 daily.
        'max_file' => 30,
    ],
];
